﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TimeNess
{
    public class timeRecord
    {
        public DateTime clockIn;
        public DateTime clockOut;
        private TimeSpan tshours
        {
            get { if (clockOut.Year!=1) return clockOut - clockIn; else return DateTime.Now - clockIn; }
        }
        internal double hours
        {
            get
            {
                return tshours.TotalHours;
            }
        }
    }
}
